package com.wjb.xietong.server;

public class Msg {
	
	public static final int TYPE_UNDEFINE = 0x1000;
	public static final int TYPE_CRM_SELLER = 0x1001;
	public static final int TYPE_CRM_SELLER_STATIS = 0x1002;
	public static final int TYPE_CRM_SALES = 0x1003;
	
	public static final int MSG_UNDEFINE = 0x2000;
	public static final int MSG_SUCCESS = 0x2001;
	public static final int MSG_FAILED = 0x2002;
	public static final int MSG_TIMEOUT = 0x2003;
	
	public int type;
	public int msg;
	public int errno;
	public String str;
	
	
	public Msg(){
		msg = MSG_UNDEFINE;
		type = MSG_UNDEFINE;
		str = null;
	}
	
	public Msg(int t, int m, int no, String s){
		type = t;
		msg = m;
		errno = no;
		if (s != null){
			str = new String(s);
		}
		else{
			str = null;
		}
	}

}
